<script>
  let a = {
    name: 'huang',
    age: 18,
    sex: 'boy',
    updateInfo: function () {
      setTimeout(() => {
        this.name = 'chen'
        this.age = 20
        this.sex = 'girl'
      }, 100)
    }
  }
  a.updateInfo()
  setTimeout(
    console.log(a)
    , 200)
</script>